package com.kingsoft.dc.khaos.module.spark.model.center.metric;


import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;

/**
 * Created by haorenhui on 2020/11/03.
 * 运维中心指标上报实体类(数据同步处理数据量(条数))
 */
public class SyncProcessDataMetric {

    //组件名
    private String component = "di";
    //运行环境
    private String env;
    //metric名称
    private String metricsName = "diSyncTaskProcessData";
    //时间戳(毫秒)
    private Long timestamp;
    //任务类型
    private String jobType;
    //租户id
    private String userId;
    //同步数据量(条数)
    private Long processDataLValue;
    //作业流名称
    private String flowName;
    //作业流id
    private String flowId;
    //作业名称
    private String jobName;
    //作业id
    private String jobId;
    //作业实例ID
    private String jobInstId;
    //项目ID
    private String projectId;
    //项目名称
    private String projectName;
    //业务日期时间戳
    private Long bizTimestamp;
    //业务日期
    private String bizDate;
    //业务时间
    private String bizTime;

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public String getEnv() {
        return env;
    }

    public void setEnv(String env) {
        this.env = env;
    }

    public String getMetricsName() {
        return metricsName;
    }

    public void setMetricsName(String metricsName) {
        this.metricsName = metricsName;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public String getJobType() {
        return jobType;
    }

    public void setJobType(String jobType) {
        this.jobType = jobType;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Long getProcessDataLValue() {
        return processDataLValue;
    }

    public void setProcessDataLValue(Long processDataLValue) {
        this.processDataLValue = processDataLValue;
    }

    public String getFlowName() {
        return flowName;
    }

    public void setFlowName(String flowName) {
        this.flowName = flowName;
    }

    public String getFlowId() {
        return flowId;
    }

    public void setFlowId(String flowId) {
        this.flowId = flowId;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobId() {
        return jobId;
    }

    public void setJobId(String jobId) {
        this.jobId = jobId;
    }

    public String getJobInstId() {
        return jobInstId;
    }

    public void setJobInstId(String jobInstId) {
        this.jobInstId = jobInstId;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public Long getBizTimestamp() {
        return bizTimestamp;
    }

    public void setBizTimestamp(Long bizTimestamp) {
        this.bizTimestamp = bizTimestamp;
    }

    public String getBizDate() {
        return bizDate;
    }

    public void setBizDate(String bizDate) {
        this.bizDate = bizDate;
    }

    public String getBizTime() {
        return bizTime;
    }

    public void setBizTime(String bizTime) {
        this.bizTime = bizTime;
    }

    public String toString(){
        return JSON.toJSONString(this, SerializerFeature.WriteMapNullValue);
    }

}